package com.milepost.messagepush.util;

import com.milepost.messagepush.common.constant.MilepostConstant;
import com.milepost.workflow.user.entity.UsersEntity;

import javax.servlet.http.HttpSession;

/**
 * @author huarf
 * @Description
 * @create 2022-04-04 21:54
 */
public class SessionUtil {

    public static UsersEntity getCurrUser(HttpSession session) {

        Object attribute = session.getAttribute(MilepostConstant.USER_SESSION_KEY);
        return (UsersEntity) attribute;
    }

}
